<script>
export default {
  props: ['type', 'click', 'title'],
  data() {
    return {}
  },
  methods: {
    callMethod() {
      this.$emit('click')
    },
  },
}
</script>

<template lang="pug">
  span.icon(:class="type" @click='callMethod') {{title}}
</template>

<style lang="stylus" scoped>
.icon
	cursor pointer
	margin-right 10px
	color #6b6b6b
	&:before
		content none
	&.icon-delete
		color #e75f5f
</style>


